import Vue from 'vue'
import Router from 'vue-router'
import Boot from '@/components/boot'
import Layout from '@/components/layout'
import Index from '@/pages/index'
import Gonglue from '@/pages/gonglue'
import Faxian from '@/pages/faxian'
import Luyou from '@/pages/luyou'
import Wode from '@/pages/wode'
import Jingqu from '@/pages/jingqu'
import Tuijian from '@/pages/tuijian'
import Museum from '@/pages/museum'
import Fenlei_city from '@/pages/gongluedetails/fenlei-city'
import Fenlei_fenlei from '@/pages/gongluedetails/fenlei-fenlei'
import Fenlei_season from '@/pages/gongluedetails/fenlei-season'
import More_city from '@/pages/gongluedetails/more-city'
import More_distance from '@/pages/gongluedetails/more-distance'
import More_hot from '@/pages/gongluedetails/more-hot'
import Maintext from '@/pages/gongluedetails/maintext'
import Sending from '@/pages/sending'
import Japan from '@/pages/gongluedetails/japan'
import Praise_main from '@/pages/praise/praise_main'
import Praise_video from '@/pages/praise/praise_video'
import Login from '@/pages/userHandle/login'
import Register from '@/pages/userHandle/register'
import Person_info from '@/pages/userHandle/person_info'
import Person_page from '@/pages/userHandle/person_page'
import Setting from '@/pages/userHandle/setting'
Vue.use(Router)

export default new Router({
  linkActiveClass:"active",
  routes: [
      	{
      	  path:"/",
      	  name:"boot",
      	  component:Boot
      	},
        {
          path: '/layout',
          name: 'Layout',
          component: Layout,
          redirect:"/layout/index",
          children:[
      		{
      			path:"index",
      			component:Index,
      		},
      		{
      			path:"gonglue",
      			component:Gonglue
      		},
      		{
      			path:"faxian",
      			component:Faxian
      		},
      		{
      			path:"luyou",
      			component:Luyou
      		},
      		{
      			path:"wode",
      			component:Wode
      		},
          {
            path:"jingqu",
            component:Jingqu,
          },
          {
            path:"museum",
            component:Museum
          },
          {
            path:"tuijian",
            component:Tuijian
          },
          {
            path:"fenlei-city",
            component:Fenlei_city
          },
          {
            path:"fenlei-fenlei",
            component:Fenlei_fenlei
          },
          {
            path:"fenlei-season",
            component:Fenlei_season
          },
          {
            path:"more-city",
            component:More_city
          },
          {
            path:"more-distance",
            component:More_distance
          },
          {
            path:"more-hot",
            component:More_hot
          },
          {
            path:"maintext",
            component:Maintext
          },
          {
            path:"sending",
            component:Sending
          },
          {
            path:"japan",
            component:Japan
          },
          {
            path:"praise_main",
            component:Praise_main
          },
          {
            path:"praise_video",
            component:Praise_video
          },
          {
            path:"login",
            component:Login
          },
          {
            path:"register",
            component:Register
          },
          {
            path:"person_info",
            component:Person_info
          },
          {
            path:"person_page",
            component:Person_page
          },
          {
            path:"setting",
            component:Setting
          }
      ]	
    }
  ]
})
